home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 2).iso / pc / utilities / hypercard player / hypercard player 2.4 / addresses / background_3664.xml next >
Encoding:
Extensible Markup Language  |  1995-03-10  |  53.3 KB  |  1,201 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>3664</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_3997.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_6249.css" />
  11.     <part>
  12.         <id>108</id>
  13.         <type>button</type>
  14.         <visible> <false /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>293</left>
  23.             <top>198</top>
  24.             <right>408</right>
  25.             <bottom>246</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <showName> <false /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <false /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name></name>
  40.         <script>on idle
  41. do me
  42. if the result is empty then
  43. put empty into me
  44. set script of me to empty
  45. send ("doMenu" && quote & "Compact Stack" & quote) to HyperCard
  46. end if
  47. set cantAbort of this stack to false
  48. end idle</script>
  49.     </part>
  50.     <part>
  51.         <id>4</id>
  52.         <type>field</type>
  53.         <visible> <true /> </visible>
  54.         <dontWrap> <true /> </dontWrap>
  55.         <dontSearch> <false /> </dontSearch>
  56.         <sharedText> <false /> </sharedText>
  57.         <fixedLineHeight> <true /> </fixedLineHeight>
  58.         <autoTab> <true /> </autoTab>
  59.         <lockText> <false /> </lockText>
  60.         <rect>
  61.             <left>100</left>
  62.             <top>17</top>
  63.             <right>341</right>
  64.             <bottom>41</bottom>
  65.         </rect>
  66.         <style>transparent</style>
  67.         <autoSelect> <false /> </autoSelect>
  68.         <showLines> <true /> </showLines>
  69.         <wideMargins> <false /> </wideMargins>
  70.         <multipleLines> <false /> </multipleLines>
  71.         <reservedFamily> 0 </reservedFamily>
  72.         <titleWidth>0</titleWidth>
  73.         <icon>0</icon>
  74.         <textAlign>left</textAlign>
  75.         <font>Palatino</font>
  76.         <textSize>12</textSize>
  77.         <textStyle>plain</textStyle>
  78.         <textHeight>22</textHeight>
  79.         <name>Name</name>
  80.         <script></script>
  81.     </part>
  82.     <part>
  83.         <id>97</id>
  84.         <type>field</type>
  85.         <visible> <true /> </visible>
  86.         <dontWrap> <true /> </dontWrap>
  87.         <dontSearch> <false /> </dontSearch>
  88.         <sharedText> <false /> </sharedText>
  89.         <fixedLineHeight> <true /> </fixedLineHeight>
  90.         <autoTab> <true /> </autoTab>
  91.         <lockText> <false /> </lockText>
  92.         <rect>
  93.             <left>100</left>
  94.             <top>39</top>
  95.             <right>341</right>
  96.             <bottom>62</bottom>
  97.         </rect>
  98.         <style>transparent</style>
  99.         <autoSelect> <false /> </autoSelect>
  100.         <showLines> <true /> </showLines>
  101.         <wideMargins> <false /> </wideMargins>
  102.         <multipleLines> <false /> </multipleLines>
  103.         <reservedFamily> 0 </reservedFamily>
  104.         <titleWidth>0</titleWidth>
  105.         <icon>0</icon>
  106.         <textAlign>left</textAlign>
  107.         <font>Palatino</font>
  108.         <textSize>12</textSize>
  109.         <textStyle>plain</textStyle>
  110.         <textHeight>22</textHeight>
  111.         <name>Company</name>
  112.         <script></script>
  113.     </part>
  114.     <part>
  115.         <id>6</id>
  116.         <type>field</type>
  117.         <visible> <true /> </visible>
  118.         <dontWrap> <true /> </dontWrap>
  119.         <dontSearch> <false /> </dontSearch>
  120.         <sharedText> <false /> </sharedText>
  121.         <fixedLineHeight> <true /> </fixedLineHeight>
  122.         <autoTab> <true /> </autoTab>
  123.         <lockText> <false /> </lockText>
  124.         <rect>
  125.             <left>100</left>
  126.             <top>72</top>
  127.             <right>283</right>
  128.             <bottom>95</bottom>
  129.         </rect>
  130.         <style>transparent</style>
  131.         <autoSelect> <false /> </autoSelect>
  132.         <showLines> <true /> </showLines>
  133.         <wideMargins> <false /> </wideMargins>
  134.         <multipleLines> <false /> </multipleLines>
  135.         <reservedFamily> 0 </reservedFamily>
  136.         <titleWidth>0</titleWidth>
  137.         <icon>0</icon>
  138.         <textAlign>left</textAlign>
  139.         <font>Palatino</font>
  140.         <textSize>12</textSize>
  141.         <textStyle>plain</textStyle>
  142.         <textHeight>22</textHeight>
  143.         <name>Street</name>
  144.         <script></script>
  145.     </part>
  146.     <part>
  147.         <id>98</id>
  148.         <type>field</type>
  149.         <visible> <true /> </visible>
  150.         <dontWrap> <true /> </dontWrap>
  151.         <dontSearch> <false /> </dontSearch>
  152.         <sharedText> <false /> </sharedText>
  153.         <fixedLineHeight> <true /> </fixedLineHeight>
  154.         <autoTab> <true /> </autoTab>
  155.         <lockText> <false /> </lockText>
  156.         <rect>
  157.             <left>100</left>
  158.             <top>94</top>
  159.             <right>283</right>
  160.             <bottom>117</bottom>
  161.         </rect>
  162.         <style>transparent</style>
  163.         <autoSelect> <false /> </autoSelect>
  164.         <showLines> <true /> </showLines>
  165.         <wideMargins> <false /> </wideMargins>
  166.         <multipleLines> <false /> </multipleLines>
  167.         <reservedFamily> 0 </reservedFamily>
  168.         <titleWidth>0</titleWidth>
  169.         <icon>0</icon>
  170.         <textAlign>left</textAlign>
  171.         <font>Palatino</font>
  172.         <textSize>12</textSize>
  173.         <textStyle>plain</textStyle>
  174.         <textHeight>22</textHeight>
  175.         <name>City</name>
  176.         <script></script>
  177.     </part>
  178.     <part>
  179.         <id>99</id>
  180.         <type>field</type>
  181.         <visible> <true /> </visible>
  182.         <dontWrap> <true /> </dontWrap>
  183.         <dontSearch> <false /> </dontSearch>
  184.         <sharedText> <false /> </sharedText>
  185.         <fixedLineHeight> <true /> </fixedLineHeight>
  186.         <autoTab> <true /> </autoTab>
  187.         <lockText> <false /> </lockText>
  188.         <rect>
  189.             <left>100</left>
  190.             <top>116</top>
  191.             <right>283</right>
  192.             <bottom>139</bottom>
  193.         </rect>
  194.         <style>transparent</style>
  195.         <autoSelect> <false /> </autoSelect>
  196.         <showLines> <true /> </showLines>
  197.         <wideMargins> <false /> </wideMargins>
  198.         <multipleLines> <false /> </multipleLines>
  199.         <reservedFamily> 0 </reservedFamily>
  200.         <titleWidth>0</titleWidth>
  201.         <icon>0</icon>
  202.         <textAlign>left</textAlign>
  203.         <font>Palatino</font>
  204.         <textSize>12</textSize>
  205.         <textStyle>plain</textStyle>
  206.         <textHeight>22</textHeight>
  207.         <name>State</name>
  208.         <script></script>
  209.     </part>
  210.     <part>
  211.         <id>104</id>
  212.         <type>field</type>
  213.         <visible> <true /> </visible>
  214.         <dontWrap> <true /> </dontWrap>
  215.         <dontSearch> <false /> </dontSearch>
  216.         <sharedText> <false /> </sharedText>
  217.         <fixedLineHeight> <true /> </fixedLineHeight>
  218.         <autoTab> <true /> </autoTab>
  219.         <lockText> <false /> </lockText>
  220.         <rect>
  221.             <left>100</left>
  222.             <top>138</top>
  223.             <right>283</right>
  224.             <bottom>161</bottom>
  225.         </rect>
  226.         <style>transparent</style>
  227.         <autoSelect> <false /> </autoSelect>
  228.         <showLines> <true /> </showLines>
  229.         <wideMargins> <false /> </wideMargins>
  230.         <multipleLines> <false /> </multipleLines>
  231.         <reservedFamily> 0 </reservedFamily>
  232.         <titleWidth>0</titleWidth>
  233.         <icon>0</icon>
  234.         <textAlign>left</textAlign>
  235.         <font>Palatino</font>
  236.         <textSize>12</textSize>
  237.         <textStyle>plain</textStyle>
  238.         <textHeight>22</textHeight>
  239.         <name>Zip</name>
  240.         <script></script>
  241.     </part>
  242.     <part>
  243.         <id>8</id>
  244.         <type>field</type>
  245.         <visible> <true /> </visible>
  246.         <dontWrap> <true /> </dontWrap>
  247.         <dontSearch> <false /> </dontSearch>
  248.         <sharedText> <false /> </sharedText>
  249.         <fixedLineHeight> <true /> </fixedLineHeight>
  250.         <autoTab> <true /> </autoTab>
  251.         <lockText> <false /> </lockText>
  252.         <rect>
  253.             <left>114</left>
  254.             <top>176</top>
  255.             <right>283</right>
  256.             <bottom>193</bottom>
  257.         </rect>
  258.         <style>opaque</style>
  259.         <autoSelect> <false /> </autoSelect>
  260.         <showLines> <true /> </showLines>
  261.         <wideMargins> <false /> </wideMargins>
  262.         <multipleLines> <false /> </multipleLines>
  263.         <reservedFamily> 0 </reservedFamily>
  264.         <titleWidth>0</titleWidth>
  265.         <icon>0</icon>
  266.         <textAlign>left</textAlign>
  267.         <font>Palatino</font>
  268.         <textSize>12</textSize>
  269.         <textStyle>plain</textStyle>
  270.         <textHeight>16</textHeight>
  271.         <name>Phone 1</name>
  272.         <script></script>
  273.     </part>
  274.     <part>
  275.         <id>100</id>
  276.         <type>field</type>
  277.         <visible> <true /> </visible>
  278.         <dontWrap> <true /> </dontWrap>
  279.         <dontSearch> <false /> </dontSearch>
  280.         <sharedText> <false /> </sharedText>
  281.         <fixedLineHeight> <true /> </fixedLineHeight>
  282.         <autoTab> <true /> </autoTab>
  283.         <lockText> <false /> </lockText>
  284.         <rect>
  285.             <left>114</left>
  286.             <top>192</top>
  287.             <right>283</right>
  288.             <bottom>209</bottom>
  289.         </rect>
  290.         <style>opaque</style>
  291.         <autoSelect> <false /> </autoSelect>
  292.         <showLines> <true /> </showLines>
  293.         <wideMargins> <false /> </wideMargins>
  294.         <multipleLines> <false /> </multipleLines>
  295.         <reservedFamily> 0 </reservedFamily>
  296.         <titleWidth>0</titleWidth>
  297.         <icon>0</icon>
  298.         <textAlign>left</textAlign>
  299.         <font>Palatino</font>
  300.         <textSize>12</textSize>
  301.         <textStyle>plain</textStyle>
  302.         <textHeight>16</textHeight>
  303.         <name>Phone 2</name>
  304.         <script></script>
  305.     </part>
  306.     <part>
  307.         <id>101</id>
  308.         <type>field</type>
  309.         <visible> <true /> </visible>
  310.         <dontWrap> <true /> </dontWrap>
  311.         <dontSearch> <false /> </dontSearch>
  312.         <sharedText> <false /> </sharedText>
  313.         <fixedLineHeight> <true /> </fixedLineHeight>
  314.         <autoTab> <true /> </autoTab>
  315.         <lockText> <false /> </lockText>
  316.         <rect>
  317.             <left>114</left>
  318.             <top>208</top>
  319.             <right>283</right>
  320.             <bottom>225</bottom>
  321.         </rect>
  322.         <style>opaque</style>
  323.         <autoSelect> <false /> </autoSelect>
  324.         <showLines> <true /> </showLines>
  325.         <wideMargins> <false /> </wideMargins>
  326.         <multipleLines> <false /> </multipleLines>
  327.         <reservedFamily> 0 </reservedFamily>
  328.         <titleWidth>0</titleWidth>
  329.         <icon>0</icon>
  330.         <textAlign>left</textAlign>
  331.         <font>Palatino</font>
  332.         <textSize>12</textSize>
  333.         <textStyle>plain</textStyle>
  334.         <textHeight>16</textHeight>
  335.         <name>Phone 3</name>
  336.         <script></script>
  337.     </part>
  338.     <part>
  339.         <id>102</id>
  340.         <type>field</type>
  341.         <visible> <true /> </visible>
  342.         <dontWrap> <true /> </dontWrap>
  343.         <dontSearch> <false /> </dontSearch>
  344.         <sharedText> <false /> </sharedText>
  345.         <fixedLineHeight> <true /> </fixedLineHeight>
  346.         <autoTab> <true /> </autoTab>
  347.         <lockText> <false /> </lockText>
  348.         <rect>
  349.             <left>114</left>
  350.             <top>224</top>
  351.             <right>283</right>
  352.             <bottom>241</bottom>
  353.         </rect>
  354.         <style>opaque</style>
  355.         <autoSelect> <false /> </autoSelect>
  356.         <showLines> <true /> </showLines>
  357.         <wideMargins> <false /> </wideMargins>
  358.         <multipleLines> <false /> </multipleLines>
  359.         <reservedFamily> 0 </reservedFamily>
  360.         <titleWidth>0</titleWidth>
  361.         <icon>0</icon>
  362.         <textAlign>left</textAlign>
  363.         <font>Palatino</font>
  364.         <textSize>12</textSize>
  365.         <textStyle>plain</textStyle>
  366.         <textHeight>16</textHeight>
  367.         <name>Phone 4</name>
  368.         <script></script>
  369.     </part>
  370.     <part>
  371.         <id>81</id>
  372.         <type>field</type>
  373.         <visible> <true /> </visible>
  374.         <dontWrap> <false /> </dontWrap>
  375.         <dontSearch> <false /> </dontSearch>
  376.         <sharedText> <true /> </sharedText>
  377.         <fixedLineHeight> <true /> </fixedLineHeight>
  378.         <autoTab> <false /> </autoTab>
  379.         <lockText> <true /> </lockText>
  380.         <rect>
  381.             <left>7</left>
  382.             <top>24</top>
  383.             <right>75</right>
  384.             <bottom>40</bottom>
  385.         </rect>
  386.         <style>transparent</style>
  387.         <autoSelect> <false /> </autoSelect>
  388.         <showLines> <false /> </showLines>
  389.         <wideMargins> <false /> </wideMargins>
  390.         <multipleLines> <false /> </multipleLines>
  391.         <reservedFamily> 0 </reservedFamily>
  392.         <titleWidth>0</titleWidth>
  393.         <icon>0</icon>
  394.         <textAlign>right</textAlign>
  395.         <font>Palatino</font>
  396.         <textSize>10</textSize>
  397.         <textStyle>plain</textStyle>
  398.         <textHeight>13</textHeight>
  399.         <name>Name Label</name>
  400.         <script></script>
  401.     </part>
  402.     <part>
  403.         <id>80</id>
  404.         <type>field</type>
  405.         <visible> <true /> </visible>
  406.         <dontWrap> <false /> </dontWrap>
  407.         <dontSearch> <false /> </dontSearch>
  408.         <sharedText> <true /> </sharedText>
  409.         <fixedLineHeight> <true /> </fixedLineHeight>
  410.         <autoTab> <false /> </autoTab>
  411.         <lockText> <true /> </lockText>
  412.         <rect>
  413.             <left>7</left>
  414.             <top>46</top>
  415.             <right>75</right>
  416.             <bottom>62</bottom>
  417.         </rect>
  418.         <style>transparent</style>
  419.         <autoSelect> <false /> </autoSelect>
  420.         <showLines> <false /> </showLines>
  421.         <wideMargins> <false /> </wideMargins>
  422.         <multipleLines> <false /> </multipleLines>
  423.         <reservedFamily> 0 </reservedFamily>
  424.         <titleWidth>0</titleWidth>
  425.         <icon>0</icon>
  426.         <textAlign>right</textAlign>
  427.         <font>Palatino</font>
  428.         <textSize>10</textSize>
  429.         <textStyle>plain</textStyle>
  430.         <textHeight>13</textHeight>
  431.         <name>Company Label</name>
  432.         <script></script>
  433.     </part>
  434.     <part>
  435.         <id>79</id>
  436.         <type>field</type>
  437.         <visible> <true /> </visible>
  438.         <dontWrap> <false /> </dontWrap>
  439.         <dontSearch> <false /> </dontSearch>
  440.         <sharedText> <true /> </sharedText>
  441.         <fixedLineHeight> <true /> </fixedLineHeight>
  442.         <autoTab> <false /> </autoTab>
  443.         <lockText> <true /> </lockText>
  444.         <rect>
  445.             <left>8</left>
  446.             <top>79</top>
  447.             <right>76</right>
  448.             <bottom>95</bottom>
  449.         </rect>
  450.         <style>transparent</style>
  451.         <autoSelect> <false /> </autoSelect>
  452.         <showLines> <false /> </showLines>
  453.         <wideMargins> <false /> </wideMargins>
  454.         <multipleLines> <false /> </multipleLines>
  455.         <reservedFamily> 0 </reservedFamily>
  456.         <titleWidth>0</titleWidth>
  457.         <icon>0</icon>
  458.         <textAlign>right</textAlign>
  459.         <font>Palatino</font>
  460.         <textSize>10</textSize>
  461.         <textStyle>plain</textStyle>
  462.         <textHeight>13</textHeight>
  463.         <name>Street Label</name>
  464.         <script></script>
  465.     </part>
  466.     <part>
  467.         <id>75</id>
  468.         <type>field</type>
  469.         <visible> <true /> </visible>
  470.         <dontWrap> <false /> </dontWrap>
  471.         <dontSearch> <false /> </dontSearch>
  472.         <sharedText> <true /> </sharedText>
  473.         <fixedLineHeight> <true /> </fixedLineHeight>
  474.         <autoTab> <false /> </autoTab>
  475.         <lockText> <true /> </lockText>
  476.         <rect>
  477.             <left>8</left>
  478.             <top>101</top>
  479.             <right>76</right>
  480.             <bottom>117</bottom>
  481.         </rect>
  482.         <style>transparent</style>
  483.         <autoSelect> <false /> </autoSelect>
  484.         <showLines> <false /> </showLines>
  485.         <wideMargins> <false /> </wideMargins>
  486.         <multipleLines> <false /> </multipleLines>
  487.         <reservedFamily> 0 </reservedFamily>
  488.         <titleWidth>0</titleWidth>
  489.         <icon>0</icon>
  490.         <textAlign>right</textAlign>
  491.         <font>Palatino</font>
  492.         <textSize>10</textSize>
  493.         <textStyle>plain</textStyle>
  494.         <textHeight>13</textHeight>
  495.         <name>City Label</name>
  496.         <script></script>
  497.     </part>
  498.     <part>
  499.         <id>82</id>
  500.         <type>field</type>
  501.         <visible> <true /> </visible>
  502.         <dontWrap> <false /> </dontWrap>
  503.         <dontSearch> <false /> </dontSearch>
  504.         <sharedText> <true /> </sharedText>
  505.         <fixedLineHeight> <true /> </fixedLineHeight>
  506.         <autoTab> <false /> </autoTab>
  507.         <lockText> <true /> </lockText>
  508.         <rect>
  509.             <left>8</left>
  510.             <top>145</top>
  511.             <right>76</right>
  512.             <bottom>161</bottom>
  513.         </rect>
  514.         <style>transparent</style>
  515.         <autoSelect> <false /> </autoSelect>
  516.         <showLines> <false /> </showLines>
  517.         <wideMargins> <false /> </wideMargins>
  518.         <multipleLines> <false /> </multipleLines>
  519.         <reservedFamily> 0 </reservedFamily>
  520.         <titleWidth>0</titleWidth>
  521.         <icon>0</icon>
  522.         <textAlign>right</textAlign>
  523.         <font>Palatino</font>
  524.         <textSize>10</textSize>
  525.         <textStyle>plain</textStyle>
  526.         <textHeight>13</textHeight>
  527.         <name>Zip Code Label</name>
  528.         <script></script>
  529.     </part>
  530.     <part>
  531.         <id>66</id>
  532.         <type>button</type>
  533.         <visible> <true /> </visible>
  534.         <reserved5> 0 </reserved5>
  535.         <reserved4> 0 </reserved4>
  536.         <reserved3> 0 </reserved3>
  537.         <reserved2> 0 </reserved2>
  538.         <reserved1> 0 </reserved1>
  539.         <enabled> <true /> </enabled>
  540.         <rect>
  541.             <left>99</left>
  542.             <top>227</top>
  543.             <right>116</right>
  544.             <bottom>244</bottom>
  545.         </rect>
  546.         <style>transparent</style>
  547.         <showName> <false /> </showName>
  548.         <highlight> <false /> </highlight>
  549.         <autoHighlight> <false /> </autoHighlight>
  550.         <sharedHighlight> <true /> </sharedHighlight>
  551.         <family>0</family>
  552.         <titleWidth>0</titleWidth>
  553.         <icon>23613</icon>
  554.         <textAlign>right</textAlign>
  555.         <font>Geneva</font>
  556.         <textSize>9</textSize>
  557.         <textStyle>plain</textStyle>
  558.         <name>Phone Number 4</name>
  559.         <script>on mouseUp
  560. dialNumber "Phone 4"
  561. end mouseUp</script>
  562.     </part>
  563.     <part>
  564.         <id>65</id>
  565.         <type>button</type>
  566.         <visible> <true /> </visible>
  567.         <reserved5> 0 </reserved5>
  568.         <reserved4> 0 </reserved4>
  569.         <reserved3> 0 </reserved3>
  570.         <reserved2> 0 </reserved2>
  571.         <reserved1> 0 </reserved1>
  572.         <enabled> <true /> </enabled>
  573.         <rect>
  574.             <left>99</left>
  575.             <top>211</top>
  576.             <right>116</right>
  577.             <bottom>228</bottom>
  578.         </rect>
  579.         <style>transparent</style>
  580.         <showName> <false /> </showName>
  581.         <highlight> <false /> </highlight>
  582.         <autoHighlight> <false /> </autoHighlight>
  583.         <sharedHighlight> <true /> </sharedHighlight>
  584.         <family>0</family>
  585.         <titleWidth>0</titleWidth>
  586.         <icon>23613</icon>
  587.         <textAlign>right</textAlign>
  588.         <font>Geneva</font>
  589.         <textSize>9</textSize>
  590.         <textStyle>plain</textStyle>
  591.         <name>Phone Number 3</name>
  592.         <script>on mouseUp
  593. dialNumber "Phone 3"
  594. end mouseUp</script>
  595.     </part>
  596.     <part>
  597.         <id>39</id>
  598.         <type>button</type>
  599.         <visible> <true /> </visible>
  600.         <reserved5> 0 </reserved5>
  601.         <reserved4> 0 </reserved4>
  602.         <reserved3> 0 </reserved3>
  603.         <reserved2> 0 </reserved2>
  604.         <reserved1> 0 </reserved1>
  605.         <enabled> <true /> </enabled>
  606.         <rect>
  607.             <left>99</left>
  608.             <top>195</top>
  609.             <right>116</right>
  610.             <bottom>212</bottom>
  611.         </rect>
  612.         <style>transparent</style>
  613.         <showName> <false /> </showName>
  614.         <highlight> <false /> </highlight>
  615.         <autoHighlight> <false /> </autoHighlight>
  616.         <sharedHighlight> <true /> </sharedHighlight>
  617.         <family>0</family>
  618.         <titleWidth>0</titleWidth>
  619.         <icon>23613</icon>
  620.         <textAlign>right</textAlign>
  621.         <font>Geneva</font>
  622.         <textSize>9</textSize>
  623.         <textStyle>plain</textStyle>
  624.         <name>Phone Number 2</name>
  625.         <script>on mouseUp
  626. dialNumber "Phone 2"
  627. end mouseUp</script>
  628.     </part>
  629.     <part>
  630.         <id>21</id>
  631.         <type>button</type>
  632.         <visible> <true /> </visible>
  633.         <reserved5> 0 </reserved5>
  634.         <reserved4> 0 </reserved4>
  635.         <reserved3> 0 </reserved3>
  636.         <reserved2> 0 </reserved2>
  637.         <reserved1> 0 </reserved1>
  638.         <enabled> <true /> </enabled>
  639.         <rect>
  640.             <left>99</left>
  641.             <top>179</top>
  642.             <right>116</right>
  643.             <bottom>195</bottom>
  644.         </rect>
  645.         <style>transparent</style>
  646.         <showName> <false /> </showName>
  647.         <highlight> <false /> </highlight>
  648.         <autoHighlight> <false /> </autoHighlight>
  649.         <sharedHighlight> <true /> </sharedHighlight>
  650.         <family>0</family>
  651.         <titleWidth>0</titleWidth>
  652.         <icon>23613</icon>
  653.         <textAlign>right</textAlign>
  654.         <font>Geneva</font>
  655.         <textSize>9</textSize>
  656.         <textStyle>plain</textStyle>
  657.         <name>Phone Number 1</name>
  658.         <script>on mouseUp
  659. dialNumber "Phone 1"
  660. end mouseUp</script>
  661.     </part>
  662.     <part>
  663.         <id>83</id>
  664.         <type>field</type>
  665.         <visible> <true /> </visible>
  666.         <dontWrap> <false /> </dontWrap>
  667.         <dontSearch> <false /> </dontSearch>
  668.         <sharedText> <true /> </sharedText>
  669.         <fixedLineHeight> <true /> </fixedLineHeight>
  670.         <autoTab> <false /> </autoTab>
  671.         <lockText> <true /> </lockText>
  672.         <rect>
  673.             <left>7</left>
  674.             <top>180</top>
  675.             <right>75</right>
  676.             <bottom>196</bottom>
  677.         </rect>
  678.         <style>transparent</style>
  679.         <autoSelect> <false /> </autoSelect>
  680.         <showLines> <false /> </showLines>
  681.         <wideMargins> <false /> </wideMargins>
  682.         <multipleLines> <false /> </multipleLines>
  683.         <reservedFamily> 0 </reservedFamily>
  684.         <titleWidth>0</titleWidth>
  685.         <icon>0</icon>
  686.         <textAlign>right</textAlign>
  687.         <font>Palatino</font>
  688.         <textSize>10</textSize>
  689.         <textStyle>plain</textStyle>
  690.         <textHeight>13</textHeight>
  691.         <name>Telephone Label</name>
  692.         <script></script>
  693.     </part>
  694.     <part>
  695.         <id>20</id>
  696.         <type>button</type>
  697.         <visible> <false /> </visible>
  698.         <reserved5> 0 </reserved5>
  699.         <reserved4> 0 </reserved4>
  700.         <reserved3> 0 </reserved3>
  701.         <reserved2> 0 </reserved2>
  702.         <reserved1> 0 </reserved1>
  703.         <enabled> <true /> </enabled>
  704.         <rect>
  705.             <left>297</left>
  706.             <top>198</top>
  707.             <right>363</right>
  708.             <bottom>247</bottom>
  709.         </rect>
  710.         <style>transparent</style>
  711.         <showName> <true /> </showName>
  712.         <highlight> <false /> </highlight>
  713.         <autoHighlight> <true /> </autoHighlight>
  714.         <sharedHighlight> <true /> </sharedHighlight>
  715.         <family>0</family>
  716.         <titleWidth>0</titleWidth>
  717.         <icon>12722</icon>
  718.         <textAlign>center</textAlign>
  719.         <font>Palatino</font>
  720.         <textSize>10</textSize>
  721.         <textStyle>plain</textStyle>
  722.         <name>Appointments</name>
  723.         <script>on mouseUp
  724. set cursor to watch
  725. put "Appointments" into theStack
  726. go stack theStack in new window -- ‚àÜ
  727. get the result
  728. if it = "Cancel" then exit mouseUp
  729. if it ‚↠empty then
  730. go stack theStack -- ‚àÜ
  731. if the result ‚↠empty
  732. then answer "Can't find stack" && quote & theStack & quote -- ‚àÜ
  733. end if
  734. end mouseUp</script>
  735.     </part>
  736.     <part>
  737.         <id>22</id>
  738.         <type>button</type>
  739.         <visible> <true /> </visible>
  740.         <reserved5> 0 </reserved5>
  741.         <reserved4> 0 </reserved4>
  742.         <reserved3> 0 </reserved3>
  743.         <reserved2> 0 </reserved2>
  744.         <reserved1> 0 </reserved1>
  745.         <enabled> <true /> </enabled>
  746.         <rect>
  747.             <left>368</left>
  748.             <top>210</top>
  749.             <right>415</right>
  750.             <bottom>254</bottom>
  751.         </rect>
  752.         <style>transparent</style>
  753.         <showName> <false /> </showName>
  754.         <highlight> <false /> </highlight>
  755.         <autoHighlight> <true /> </autoHighlight>
  756.         <sharedHighlight> <true /> </sharedHighlight>
  757.         <family>0</family>
  758.         <titleWidth>0</titleWidth>
  759.         <icon>22978</icon>
  760.         <textAlign>center</textAlign>
  761.         <font>Palatino</font>
  762.         <textSize>10</textSize>
  763.         <textStyle>plain</textStyle>
  764.         <name>Home</name>
  765.         <script>on mouseUp
  766. set cursor to watch
  767. go home
  768. end mouseUp
  769. </script>
  770.     </part>
  771.     <part>
  772.         <id>51</id>
  773.         <type>button</type>
  774.         <visible> <true /> </visible>
  775.         <reserved5> 0 </reserved5>
  776.         <reserved4> 0 </reserved4>
  777.         <reserved3> 0 </reserved3>
  778.         <reserved2> 0 </reserved2>
  779.         <reserved1> 0 </reserved1>
  780.         <enabled> <true /> </enabled>
  781.         <rect>
  782.             <left>301</left>
  783.             <top>138</top>
  784.             <right>401</right>
  785.             <bottom>157</bottom>
  786.         </rect>
  787.         <style>rectangle</style>
  788.         <showName> <true /> </showName>
  789.         <highlight> <false /> </highlight>
  790.         <autoHighlight> <true /> </autoHighlight>
  791.         <sharedHighlight> <true /> </sharedHighlight>
  792.         <family>0</family>
  793.         <titleWidth>0</titleWidth>
  794.         <icon>0</icon>
  795.         <textAlign>center</textAlign>
  796.         <font>Palatino</font>
  797.         <textSize>12</textSize>
  798.         <textStyle>plain</textStyle>
  799.         <name>New Card</name>
  800.         <script>on mouseUp
  801. -- Requires handler: toggleMark
  802. -- create a new card and leaving the cursor into the name field
  803. toggleNotes false
  804. set lockMessages to true
  805. doMenu "New Card"
  806. toggleMark false
  807. select after text of bg field id 4
  808. end mouseUp
  809. </script>
  810.     </part>
  811.     <part>
  812.         <id>52</id>
  813.         <type>button</type>
  814.         <visible> <true /> </visible>
  815.         <reserved5> 0 </reserved5>
  816.         <reserved4> 0 </reserved4>
  817.         <reserved3> 0 </reserved3>
  818.         <reserved2> 0 </reserved2>
  819.         <reserved1> 0 </reserved1>
  820.         <enabled> <true /> </enabled>
  821.         <rect>
  822.             <left>301</left>
  823.             <top>161</top>
  824.             <right>401</right>
  825.             <bottom>180</bottom>
  826.         </rect>
  827.         <style>rectangle</style>
  828.         <showName> <true /> </showName>
  829.         <highlight> <false /> </highlight>
  830.         <autoHighlight> <true /> </autoHighlight>
  831.         <sharedHighlight> <true /> </sharedHighlight>
  832.         <family>0</family>
  833.         <titleWidth>0</titleWidth>
  834.         <icon>0</icon>
  835.         <textAlign>center</textAlign>
  836.         <font>Palatino</font>
  837.         <textSize>12</textSize>
  838.         <textStyle>plain</textStyle>
  839.         <name>Delete Card</name>
  840.         <script>on mouseUp
  841. -- Requires handler: deleteCurrentCard
  842. if the optionKey is down then
  843. doMenu "Delete Card"
  844. exit mouseUp
  845. end if
  846. if the number of cards in this bkgnd = 1 then
  847. answer "Can't delete the last address card." with "OK" -- ‚àÜ
  848. exit to hyperCard
  849. end if
  850. answer "Delete this address card?" with "Cancel" or "OK" -- ‚àÜ
  851. if it is "OK" then -- ‚àÜ
  852. set cursor to watch
  853. get number of this card
  854. lock screen
  855. doMenu "Delete Card"
  856. go card it - 1
  857. unlock screen
  858. end if
  859. end mouseUp
  860. </script>
  861.     </part>
  862.     <part>
  863.         <id>53</id>
  864.         <type>button</type>
  865.         <visible> <true /> </visible>
  866.         <reserved5> 0 </reserved5>
  867.         <reserved4> 0 </reserved4>
  868.         <reserved3> 0 </reserved3>
  869.         <reserved2> 0 </reserved2>
  870.         <reserved1> 0 </reserved1>
  871.         <enabled> <true /> </enabled>
  872.         <rect>
  873.             <left>301</left>
  874.             <top>92</top>
  875.             <right>401</right>
  876.             <bottom>111</bottom>
  877.         </rect>
  878.         <style>rectangle</style>
  879.         <showName> <true /> </showName>
  880.         <highlight> <false /> </highlight>
  881.         <autoHighlight> <true /> </autoHighlight>
  882.         <sharedHighlight> <true /> </sharedHighlight>
  883.         <family>0</family>
  884.         <titleWidth>0</titleWidth>
  885.         <icon>0</icon>
  886.         <textAlign>center</textAlign>
  887.         <font>Palatino</font>
  888.         <textSize>12</textSize>
  889.         <textStyle>plain</textStyle>
  890.         <name>Find‚Ķ</name>
  891.         <script>on mouseUp
  892. -- Requires handler: findText
  893. global AddressFind
  894. ask "What text do you want to find?" with AddressFind -- ‚àÜ
  895. if it is empty then exit mouseUp
  896. else
  897. put it into AddressFind
  898. findText
  899. end if
  900. end mouseUp</script>
  901.     </part>
  902.     <part>
  903.         <id>54</id>
  904.         <type>button</type>
  905.         <visible> <true /> </visible>
  906.         <reserved5> 0 </reserved5>
  907.         <reserved4> 0 </reserved4>
  908.         <reserved3> 0 </reserved3>
  909.         <reserved2> 0 </reserved2>
  910.         <reserved1> 0 </reserved1>
  911.         <enabled> <true /> </enabled>
  912.         <rect>
  913.             <left>301</left>
  914.             <top>115</top>
  915.             <right>401</right>
  916.             <bottom>134</bottom>
  917.         </rect>
  918.         <style>rectangle</style>
  919.         <showName> <true /> </showName>
  920.         <highlight> <false /> </highlight>
  921.         <autoHighlight> <false /> </autoHighlight>
  922.         <sharedHighlight> <false /> </sharedHighlight>
  923.         <family>0</family>
  924.         <titleWidth>0</titleWidth>
  925.         <icon>0</icon>
  926.         <textAlign>center</textAlign>
  927.         <font>Palatino</font>
  928.         <textSize>12</textSize>
  929.         <textStyle>plain</textStyle>
  930.         <name>Show Notes</name>
  931.         <script>on mouseUp
  932. -- Requires handler: toggleNotes
  933. -- hide/show the Notes field
  934. toggleNotes (not visible of bkgnd field "Notes")
  935. end mouseUp
  936. .</script>
  937.     </part>
  938.     <part>
  939.         <id>76</id>
  940.         <type>button</type>
  941.         <visible> <true /> </visible>
  942.         <reserved5> 0 </reserved5>
  943.         <reserved4> 0 </reserved4>
  944.         <reserved3> 0 </reserved3>
  945.         <reserved2> 0 </reserved2>
  946.         <reserved1> 0 </reserved1>
  947.         <enabled> <true /> </enabled>
  948.         <rect>
  949.             <left>323</left>
  950.             <top>68</top>
  951.             <right>349</right>
  952.             <bottom>91</bottom>
  953.         </rect>
  954.         <style>transparent</style>
  955.         <showName> <false /> </showName>
  956.         <highlight> <false /> </highlight>
  957.         <autoHighlight> <true /> </autoHighlight>
  958.         <sharedHighlight> <true /> </sharedHighlight>
  959.         <family>0</family>
  960.         <titleWidth>0</titleWidth>
  961.         <icon>20461</icon>
  962.         <textAlign>center</textAlign>
  963.         <font>Chicago</font>
  964.         <textSize>12</textSize>
  965.         <textStyle>plain</textStyle>
  966.         <name>Prev</name>
  967.         <script>on mouseDown
  968. lock screen
  969. if the shiftKey is down then go prev marked cd
  970. else if the commandKey is down then go first cd of this bg
  971. else go prev cd of this bg
  972. unlock screen with visual wipe left fast
  973. end mouseDown
  974.  
  975. on mouseStillDown
  976. -- Requires handler: mouseDown
  977. mouseDown
  978. end mouseStillDown
  979. </script>
  980.     </part>
  981.     <part>
  982.         <id>77</id>
  983.         <type>button</type>
  984.         <visible> <true /> </visible>
  985.         <reserved5> 0 </reserved5>
  986.         <reserved4> 0 </reserved4>
  987.         <reserved3> 0 </reserved3>
  988.         <reserved2> 0 </reserved2>
  989.         <reserved1> 0 </reserved1>
  990.         <enabled> <true /> </enabled>
  991.         <rect>
  992.             <left>355</left>
  993.             <top>68</top>
  994.             <right>380</right>
  995.             <bottom>91</bottom>
  996.         </rect>
  997.         <style>transparent</style>
  998.         <showName> <false /> </showName>
  999.         <highlight> <false /> </highlight>
  1000.         <autoHighlight> <true /> </autoHighlight>
  1001.         <sharedHighlight> <true /> </sharedHighlight>
  1002.         <family>0</family>
  1003.         <titleWidth>0</titleWidth>
  1004.         <icon>22126</icon>
  1005.         <textAlign>center</textAlign>
  1006.         <font>Chicago</font>
  1007.         <textSize>12</textSize>
  1008.         <textStyle>plain</textStyle>
  1009.         <name>Next</name>
  1010.         <script>on mouseDown
  1011. lock screen
  1012. if the shiftKey is down then go next marked cd
  1013. else if the commandKey is down then go last cd of this bg
  1014. else go next cd of this bg
  1015. unlock screen with visual wipe right fast
  1016. end mouseDown
  1017.  
  1018. on mouseStillDown
  1019. -- Requires handler: mouseDown
  1020. mouseDown
  1021. end mouseStillDown
  1022. </script>
  1023.     </part>
  1024.     <part>
  1025.         <id>93</id>
  1026.         <type>button</type>
  1027.         <visible> <true /> </visible>
  1028.         <reserved5> 0 </reserved5>
  1029.         <reserved4> 0 </reserved4>
  1030.         <reserved3> 0 </reserved3>
  1031.         <reserved2> 0 </reserved2>
  1032.         <reserved1> 0 </reserved1>
  1033.         <enabled> <true /> </enabled>
  1034.         <rect>
  1035.             <left>346</left>
  1036.             <top>5</top>
  1037.             <right>364</right>
  1038.             <bottom>24</bottom>
  1039.         </rect>
  1040.         <style>opaque</style>
  1041.         <showName> <false /> </showName>
  1042.         <highlight> <false /> </highlight>
  1043.         <autoHighlight> <false /> </autoHighlight>
  1044.         <sharedHighlight> <true /> </sharedHighlight>
  1045.         <family>0</family>
  1046.         <titleWidth>0</titleWidth>
  1047.         <icon>9832</icon>
  1048.         <textAlign>center</textAlign>
  1049.         <font>Chicago</font>
  1050.         <textSize>12</textSize>
  1051.         <textStyle>plain</textStyle>
  1052.         <name>Unmark</name>
  1053.         <script>on mouseUp
  1054. -- Requires handler: toggleMark
  1055. toggleMark not marked of this card
  1056. end mouseUp</script>
  1057.     </part>
  1058.     <part>
  1059.         <id>95</id>
  1060.         <type>field</type>
  1061.         <visible> <false /> </visible>
  1062.         <dontWrap> <false /> </dontWrap>
  1063.         <dontSearch> <true /> </dontSearch>
  1064.         <sharedText> <true /> </sharedText>
  1065.         <fixedLineHeight> <true /> </fixedLineHeight>
  1066.         <autoTab> <false /> </autoTab>
  1067.         <lockText> <false /> </lockText>
  1068.         <rect>
  1069.             <left>0</left>
  1070.             <top>0</top>
  1071.             <right>30</right>
  1072.             <bottom>19</bottom>
  1073.         </rect>
  1074.         <style>rectangle</style>
  1075.         <autoSelect> <false /> </autoSelect>
  1076.         <showLines> <false /> </showLines>
  1077.         <wideMargins> <false /> </wideMargins>
  1078.         <multipleLines> <false /> </multipleLines>
  1079.         <reservedFamily> 0 </reservedFamily>
  1080.         <titleWidth>0</titleWidth>
  1081.         <icon>0</icon>
  1082.         <textAlign>left</textAlign>
  1083.         <font>Geneva</font>
  1084.         <textSize>12</textSize>
  1085.         <textStyle>plain</textStyle>
  1086.         <textHeight>16</textHeight>
  1087.         <name>Sort order</name>
  1088.         <script>on mouseUp
  1089. hide me
  1090. end mouseUp</script>
  1091.     </part>
  1092.     <part>
  1093.         <id>96</id>
  1094.         <type>field</type>
  1095.         <visible> <false /> </visible>
  1096.         <dontWrap> <false /> </dontWrap>
  1097.         <dontSearch> <true /> </dontSearch>
  1098.         <sharedText> <true /> </sharedText>
  1099.         <fixedLineHeight> <true /> </fixedLineHeight>
  1100.         <autoTab> <false /> </autoTab>
  1101.         <lockText> <true /> </lockText>
  1102.         <rect>
  1103.             <left>141</left>
  1104.             <top>0</top>
  1105.             <right>214</right>
  1106.             <bottom>19</bottom>
  1107.         </rect>
  1108.         <style>rectangle</style>
  1109.         <autoSelect> <false /> </autoSelect>
  1110.         <showLines> <false /> </showLines>
  1111.         <wideMargins> <false /> </wideMargins>
  1112.         <multipleLines> <false /> </multipleLines>
  1113.         <reservedFamily> 0 </reservedFamily>
  1114.         <titleWidth>0</titleWidth>
  1115.         <icon>0</icon>
  1116.         <textAlign>left</textAlign>
  1117.         <font>Geneva</font>
  1118.         <textSize>12</textSize>
  1119.         <textStyle>plain</textStyle>
  1120.         <textHeight>16</textHeight>
  1121.         <name>Name Order</name>
  1122.         <script>on mouseUp
  1123. hide me
  1124. end mouseUp</script>
  1125.     </part>
  1126.     <part>
  1127.         <id>103</id>
  1128.         <type>button</type>
  1129.         <visible> <true /> </visible>
  1130.         <reserved5> 0 </reserved5>
  1131.         <reserved4> 0 </reserved4>
  1132.         <reserved3> 0 </reserved3>
  1133.         <reserved2> 0 </reserved2>
  1134.         <reserved1> 0 </reserved1>
  1135.         <enabled> <true /> </enabled>
  1136.         <rect>
  1137.             <left>336</left>
  1138.             <top>1</top>
  1139.             <right>373</right>
  1140.             <bottom>29</bottom>
  1141.         </rect>
  1142.         <style>transparent</style>
  1143.         <showName> <false /> </showName>
  1144.         <highlight> <false /> </highlight>
  1145.         <autoHighlight> <false /> </autoHighlight>
  1146.         <sharedHighlight> <true /> </sharedHighlight>
  1147.         <family>0</family>
  1148.         <titleWidth>0</titleWidth>
  1149.         <icon>0</icon>
  1150.         <textAlign>center</textAlign>
  1151.         <font>Chicago</font>
  1152.         <textSize>12</textSize>
  1153.         <textStyle>plain</textStyle>
  1154.         <name></name>
  1155.         <script>on mouseUp
  1156. -- Requires handler: toggleMark
  1157. toggleMark not marked of this card
  1158. end mouseUp</script>
  1159.     </part>
  1160.     <part>
  1161.         <id>105</id>
  1162.         <type>field</type>
  1163.         <visible> <true /> </visible>
  1164.         <dontWrap> <false /> </dontWrap>
  1165.         <dontSearch> <false /> </dontSearch>
  1166.         <sharedText> <true /> </sharedText>
  1167.         <fixedLineHeight> <true /> </fixedLineHeight>
  1168.         <autoTab> <false /> </autoTab>
  1169.         <lockText> <true /> </lockText>
  1170.         <rect>
  1171.             <left>8</left>
  1172.             <top>123</top>
  1173.             <right>76</right>
  1174.             <bottom>139</bottom>
  1175.         </rect>
  1176.         <style>transparent</style>
  1177.         <autoSelect> <false /> </autoSelect>
  1178.         <showLines> <false /> </showLines>
  1179.         <wideMargins> <false /> </wideMargins>
  1180.         <multipleLines> <false /> </multipleLines>
  1181.         <reservedFamily> 0 </reservedFamily>
  1182.         <titleWidth>0</titleWidth>
  1183.         <icon>0</icon>
  1184.         <textAlign>right</textAlign>
  1185.         <font>Palatino</font>
  1186.         <textSize>10</textSize>
  1187.         <textStyle>plain</textStyle>
  1188.         <textHeight>13</textHeight>
  1189.         <name>State Label</name>
  1190.         <script></script>
  1191.     </part>
  1192.     <part>
  1193.         <id>7</id>
  1194.         <type>field</type>
  1195.         <visible> <false /> </visible>
  1196.         <dontWrap> <false /> </dontWrap>
  1197.         <dontSearch> <false /> </dontSearch>
  1198.         <sharedText> <false /> </sharedText>
  1199.         <fixedLineHeight> <true /> </fixedLineHeight>
  1200.         <autoTab> <true /> </autoTab>
  1201.         <lockText> <false /> </lockText>
  1202.         <rect>
  1203.             <left>7</left>
  1204.             <top>64</top>
  1205.             <right>285</right>
  1206.             <bottom>247</bottom>
  1207.         </rect>
  1208.         <style>scrolling</style>
  1209.         <autoSelect> <false /> </autoSelect>
  1210.         <showLines> <false /> </showLines>
  1211.         <wideMargins> <false /> </wideMargins>
  1212.         <multipleLines> <false /> </multipleLines>
  1213.         <reservedFamily> 0 </reservedFamily>
  1214.         <titleWidth>0</titleWidth>
  1215.         <icon>0</icon>
  1216.         <textAlign>left</textAlign>
  1217.         <font>Palatino</font>
  1218.         <textSize>12</textSize>
  1219.         <textStyle>plain</textStyle>
  1220.         <textHeight>16</textHeight>
  1221.         <name>Notes</name>
  1222.         <script>on enterInField
  1223. -- Requires handler toggleNotes
  1224. toggleNotes (not visible of bkgnd field "Notes")
  1225. end enterInField</script>
  1226.     </part>
  1227.     <part>
  1228.         <id>107</id>
  1229.         <type>field</type>
  1230.         <visible> <false /> </visible>
  1231.         <dontWrap> <true /> </dontWrap>
  1232.         <dontSearch> <false /> </dontSearch>
  1233.         <sharedText> <false /> </sharedText>
  1234.         <fixedLineHeight> <true /> </fixedLineHeight>
  1235.         <autoTab> <true /> </autoTab>
  1236.         <lockText> <true /> </lockText>
  1237.         <rect>
  1238.             <left>100</left>
  1239.             <top>0</top>
  1240.             <right>341</right>
  1241.             <bottom>24</bottom>
  1242.         </rect>
  1243.         <style>transparent</style>
  1244.         <autoSelect> <false /> </autoSelect>
  1245.         <showLines> <false /> </showLines>
  1246.         <wideMargins> <false /> </wideMargins>
  1247.         <multipleLines> <false /> </multipleLines>
  1248.         <reservedFamily> 0 </reservedFamily>
  1249.         <titleWidth>0</titleWidth>
  1250.         <icon>0</icon>
  1251.         <textAlign>left</textAlign>
  1252.         <font>Palatino</font>
  1253.         <textSize>12</textSize>
  1254.         <textStyle>plain</textStyle>
  1255.         <textHeight>22</textHeight>
  1256.         <name>Correct Name</name>
  1257.         <script></script>
  1258.     </part>
  1259.     <content>
  1260.         <layer>background</layer>
  1261.         <id>75</id>
  1262.         <text>City</text>
  1263.     </content>
  1264.     <content>
  1265.         <layer>background</layer>
  1266.         <id>80</id>
  1267.         <text>Company</text>
  1268.     </content>
  1269.     <content>
  1270.         <layer>background</layer>
  1271.         <id>79</id>
  1272.         <text>Street</text>
  1273.     </content>
  1274.     <content>
  1275.         <layer>background</layer>
  1276.         <id>82</id>
  1277.         <text>Zip Code</text>
  1278.     </content>
  1279.     <content>
  1280.         <layer>background</layer>
  1281.         <id>83</id>
  1282.         <text>Telephone</text>
  1283.     </content>
  1284.     <content>
  1285.         <layer>background</layer>
  1286.         <id>96</id>
  1287.         <text>last word</text>
  1288.     </content>
  1289.     <content>
  1290.         <layer>background</layer>
  1291.         <id>95</id>
  1292.         <text>1</text>
  1293.     </content>
  1294.     <content>
  1295.         <layer>background</layer>
  1296.         <id>81</id>
  1297.         <text>Name</text>
  1298.     </content>
  1299.     <content>
  1300.         <layer>background</layer>
  1301.         <id>105</id>
  1302.         <text>State</text>
  1303.     </content>
  1304.     <content>
  1305.         <layer>background</layer>
  1306.         <id>108</id>
  1307.         <text>on change_o
  1308.   set cantAbort of this stack to true
  1309.   put "Appointments" into ApptStack  -- ‚àÜ
  1310.   put empty into Error
  1311.   -- check that there is a stack to modify
  1312.   if the cantModify of this stack then put "locked" into Error
  1313.   else if the userlevel < 3 then put "no paint" into Error
  1314.   else if there is no stack ApptStack then put "not found" into Error
  1315.   else
  1316.     -- make box
  1317.     set editBkgnd to true
  1318.     choose rect tool
  1319.     reset paint
  1320.     set pattern to 1
  1321.     set filled to true
  1322.     drag from topLeft of the target to botRight of the target
  1323.     choose line tool
  1324.     put 2+left of the target into leftEdge
  1325.     put 2+right of the target into rightEdge
  1326.     put 3+top of the target into topEdge
  1327.     put 2+bottom of the target into botEdge
  1328.     drag from leftEdge,botEdge-1 to rightEdge,botEdge-1
  1329.     drag from right of bg btn "Unmark",botEdge to rightEdge,botEdge
  1330.     drag from rightEdge-1,topEdge to rightEdge-1,botEdge
  1331.     drag from rightEdge,topEdge to rightEdge,botEdge
  1332.     reset paint
  1333.     choose browse tool
  1334.     set editBkgnd to false
  1335.     
  1336.     -- rearrange buttons
  1337.     set rect of bg btn id 22 to 360,198,407,247
  1338.     set showName of bg btn id 22 to true
  1339.     set rect of bg btn id 20 to 297,198,363,247
  1340.     show bg btn id 20
  1341.     
  1342.     -- fix Appointments stack
  1343.     -- give user opportunity to save a copy or abort
  1344.     answer "Would you like to save a copy of your" && ApptStack¬¨
  1345.     && "stack before a repair is attempted?" with¬¨
  1346.     "Cancel" or "No" or "Yes"
  1347.     if it is not "Cancel" then -- user wants fix
  1348.       if it is "Yes" then
  1349.         ask file "Save copy as:" with (ApptStack && "copy")
  1350.         if it is not empty then
  1351.           save stack ApptStack as stack it
  1352.         end if
  1353.       end if
  1354.       
  1355.       -- Go there and fix script of field id 1 (Title)
  1356.       set lockMessages to true
  1357.       push this cd
  1358.       go stack ApptStack
  1359.       if line 3 of script of this stack contains "2.2" then
  1360.         if id of this bg is 2603 then
  1361.           if there is a bg fld id 1 then
  1362.             put "on mouseDown" into TheScript
  1363.             put "if there is a bg fld" && quote & "Calendar" & quote && "then" ¬¨
  1364.             into line 2 of TheScript
  1365.             put "send" && quote & "drawCalendar " & quote¬¨
  1366.             & " & quote & short name of this cd & quote to bg fld" && quote & "Calendar" & quote¬¨
  1367.             into line 3 of TheScript
  1368.             put "end if" into line 4 of TheScript
  1369.             put "pass mouseDown" into line 5 of TheScript
  1370.             put "end mouseDown" into line 6 of TheScript
  1371.             put TheScript into FixedScript
  1372.             set script of bg fld id 1 to FixedScript
  1373.             send ("doMenu" && quote & "Compact Stack" & quote) to HyperCard
  1374.           end if
  1375.         end if
  1376.       end if
  1377.     end if
  1378.     pop cd
  1379.     set lockMessages to false
  1380.   end if
  1381.   return Error
  1382. end change_o
  1383.  
  1384. -- rect of "Home": 360,198,407,247
  1385. -- rect of "Appointments": 297,198,363,247</text>
  1386.     </content>
  1387.     <name>Body</name>
  1388.     <script>‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  1389. Script from background "Body" of Addresses Stack
  1390. Version 2.3
  1391.  
  1392. THE MESSAGE HANDLERS IN THIS SCRIPT:
  1393. arrowKey,closeCard,closeStack,deleteCurrentCard,dialNumber,enterKey,
  1394. exportText,findText,importText,importTextFile,ImportTextFromNewStack,
  1395. ImportTextFromOldStack,printReport,resetAPButtons,returnKey,openCard,
  1396. sortCards,toggleMark,toggleNotes,whichStackVersion,writeExportedText,
  1397.  
  1398. THE FUNCTION HANDLERS IN THIS SCRIPT:
  1399. executeFind,getLabelContents,lastHCItem,nameOfThisCd,substituteChar,
  1400. swapItemDelimiter,theFields
  1401.  
  1402. "--‚àÜ" indicates strings which will need localization
  1403. ‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû‚àû
  1404.  
  1405. on openCard
  1406. set the visible of bg btn "Unmark" to (not the marked of this cd)
  1407. pass openCard
  1408. end openCard
  1409.  
  1410. on arrowKey whichKey
  1411. if (whichKey is "Right") and (the shiftKey is down)
  1412. then go next marked card
  1413. if (whichKey is "left") and (the shiftKey is down)
  1414. then go prev marked card
  1415. else pass arrowKey
  1416. end arrowKey
  1417.  
  1418. on closeCard
  1419. toggleNotes false
  1420. pass closeCard
  1421. end closeCard
  1422.  
  1423. on closeStack
  1424. -- compact stack (occasionally)
  1425. if line 1 of the stacks is not in (the stacksInUse) then
  1426. if 10*(the freeSize of this stack) > the size of this stack then
  1427. doMenu "Compact Stack"
  1428. end if
  1429. end if
  1430. pass closeStack
  1431. end closeStack
  1432.  
  1433. -----  Sort Handler  ------------------------------------------------
  1434.  
  1435. on sortCards SortField
  1436. if sortField is "Name" then
  1437. sort cards of this bg international by nameOfThisCd()
  1438. else sort cards of this bg international by bg fld sortField
  1439. end sortCards
  1440.  
  1441. function nameOfThisCd
  1442. if bg fld "Name" is not empty then
  1443. put bg fld "Name" into TheName
  1444. if bg fld "Name Order" is "last word" then
  1445. put number of words in TheName into TheNumber
  1446. if TheNumber is 1 then
  1447. put TheName into TheCorrectName
  1448. else if TheNumber is 2 then
  1449. put word 2 of TheName & "," && ¬¨
  1450. word 1 of TheName into TheCorrectName
  1451. else
  1452. put word 3 to TheNumber of TheName & "," && ¬¨
  1453. word 1 to 2 of TheName into TheCorrectName
  1454. end if
  1455. --
  1456. else put bg fld "Name" into TheCorrectName
  1457. else put bg fld "Company" into TheCorrectName
  1458. return TheCorrectName
  1459. end nameOfThisCd
  1460.  
  1461. -----  Find Handlers  ------------------------------------------------
  1462.  
  1463. on findText
  1464. -- Requires handler: toggleNotes
  1465. global AddressFind
  1466. if AddressFind is empty then exit findText
  1467. find string AddressFind
  1468. if the result is NOT empty then
  1469. beep
  1470. answer "‚Äú" & AddressFind & "‚Äù was not found." -- ‚àÜ
  1471. exit findText
  1472. end if
  1473. if the short name of the foundField is "Notes" then
  1474. if not visible of bg fld "Notes" then
  1475. set cursor to watch
  1476. toggleNotes true
  1477. find string AddressFind in bg fld "Notes"
  1478. end if
  1479. else
  1480. if visible of bg fld "Notes" then
  1481. set cursor to watch
  1482. toggleNotes false
  1483. find string AddressFind in the foundField
  1484. end if
  1485. end if
  1486. end findText
  1487.  
  1488. on returnKey
  1489. if executeFind() then findText
  1490. else pass returnKey
  1491. end returnKey
  1492.  
  1493. on enterKey
  1494. if executeFind() then findText
  1495. else pass enterKey
  1496. end enterKey
  1497.  
  1498. function executeFind
  1499. -- Requires handler: findText
  1500. -- if the cursor is not in a field or in the message box, then
  1501. -- assume they want to find the text again.
  1502. global AddressFind
  1503. if (AddressFind is not empty) and (the selectedField is empty) then
  1504. return TRUE
  1505. else return FALSE
  1506. end executeFind
  1507.  
  1508. on doMenu what
  1509. global AddressFind
  1510. if what is "Find..." then put empty into AddressFind -- ‚àÜ
  1511. pass doMenu
  1512. end doMenu
  1513.  
  1514. -----  Misc Handlers  ------------------------------------------------
  1515.  
  1516. on dialNumber whichFld
  1517. -- dial the phone with a specified number.
  1518. put bg fld whichFld into phoneNumber
  1519. if phoneNumber is empty then
  1520. ask "What phone number would you like dialed?" -- ‚àÜ
  1521. if the result is "Cancel" or it is empty then exit dialNumber
  1522. put it into phoneNumber
  1523. end if
  1524. -- the dial handler is in the Phone Dialer stack
  1525. if there is a stack "Phone Dialer" then  -- ‚àÜ
  1526. lock screen
  1527. push cd -- remember where we are
  1528. go stack "Phone Dialer" -- ‚àÜ
  1529. if the result is empty then
  1530. dial phoneNumber
  1531. pop cd
  1532. unlock screen
  1533. end if
  1534. else dial phoneNumber
  1535. end dialNumber
  1536.  
  1537. on toggleMark isMarked
  1538. -- 'dog ear' the card to reflect its 'marked' status
  1539. set the marked of this card to isMarked
  1540. set the visible of bg btn "Unmark" to (not isMarked)
  1541. end toggleMark
  1542.  
  1543. on toggleNotes visStatus
  1544. -- shows and hides the notes field
  1545. lock screen
  1546. set hilite of bg btn id 54 to visStatus
  1547. set the visible of bg fld "Notes" to visStatus
  1548. if visStatus then -- show it
  1549. -- change the name of the btn to hide notes fld
  1550. set the name of bg btn id 54 to "Hide Notes" -- ‚àÜ
  1551. put "wipe left fast" into theVisEffect
  1552. select after text of bg fld "Notes"
  1553. else -- hide it
  1554. -- change the name of the btn to hide notes field
  1555. set the name of bg btn id 54 to "Show Notes" -- ‚àÜ
  1556. put "wipe right fast" into theVisEffect
  1557. end if
  1558. unlock screen with visual effect theVisEffect
  1559. end toggleNotes
  1560.  
  1561. on printReport
  1562. -- print all the cards or just marked cards
  1563. put (the shiftKey is up) into printAllCards
  1564. -- ask user to select a template
  1565. put the reportTemplates of this stack into TemplateList
  1566. put "Please select a report template for your addresses:"¬¨
  1567. into textPrompt -- ‚àÜ
  1568. put showList(TemplateList,textPrompt,false,true,"Select,Cancel",1)¬¨
  1569. into TheSelection -- ‚àÜ
  1570. if line 1 of TheSelection is "Cancel" then exit printReport -- ‚àÜ
  1571. put line (line 2 of TheSelection) of TemplateList into theTemplate
  1572. -- print addresses
  1573. open report printing with template theTemplate
  1574. go first card of bg "Body"
  1575. if printAllCards then print (number of cards in bg "Body") cards
  1576. else print marked cards
  1577. close printing
  1578. end printReport
  1579.  
  1580. on dialNumber phoneNumber
  1581. -- Requires handler: dial from the Phone Stack
  1582. -- dial the phone using the Phone Dialer stack
  1583. set cursor to watch
  1584. if phoneNumber is empty then exit dialNumber
  1585. push card -- remember where we are
  1586. lock screen
  1587. -- the 'dial' handler is in the 'Phone Dialer' stack
  1588. if there is a stack "Phone Dialer" then -- ‚àÜ
  1589. go stack "Phone Dialer" -- ‚àÜ
  1590. dial phoneNumber  -- dial the number
  1591. else answer "The number could not be dialed, because the Phone Dialer stack cannot be found." -- ‚àÜ
  1592. pop card -- return to where we were
  1593. unlock screen
  1594. end dialNumber
  1595.  
  1596. -----  Label Function  -------------------------------
  1597.  
  1598. function getLabelContents
  1599. -- Assembles information for print labels
  1600. --
  1601. put empty into TheAddress
  1602. --
  1603. put bg fld "Street" & return & bg fld "City" & ¬¨
  1604. ", " & bg fld "State" && bg fld "Zip" into TheAddress
  1605. --
  1606. if bg fld "Company" is not empty then
  1607. put bg fld "Company" & return before TheAddress
  1608. end if
  1609. --
  1610. if bg fld "Name" is not empty then
  1611. put bg fld "Name" & return before TheAddress
  1612. end if
  1613. --
  1614. return TheAddress
  1615. end getLabelContents
  1616.  
  1617. -----  Import Text Operations  -------------------------------
  1618.  
  1619. -- text files to be imported into the stack need to be in a specific
  1620. -- format: chunks of information (such as Name, Company,
  1621. -- etc.) should be separated by tabs
  1622.  
  1623. on importText
  1624. -- Requires handlers: importTextFromStack,importTextFile
  1625. -- import text from a HyperCard 1.x or 2.x Address stack or from a text file
  1626. answer "Import text from a text file or from an Address stack" ¬¨
  1627. && "(that shipped with a version of HyperCard)?" ¬¨
  1628. with "Cancel" or "Stack" or "Text File" -- ‚àÜ
  1629. if it is "Cancel" then exit importText -- ‚àÜ
  1630. if it is "Stack" then whichStackVersion -- ‚àÜ
  1631. else ImportTextFile
  1632. end importText
  1633.  
  1634. on ImportTextFile fileName
  1635. -- Requires handler: toggleMark, deleteCurrentCard
  1636. -- Requires function handler: theFields, SubstituteChar
  1637. -- import text from a text file stored in the correct format
  1638. if fileName is empty then
  1639. answer file "Import text from what file?" of type "TEXT" -- ‚àÜ
  1640. if the result is "Cancel" or it is empty then exit ImportTextFile
  1641. put it into fileName
  1642. end if
  1643. put theFields() into fieldList
  1644. set cursor to busy
  1645. go last card of bg "Body" -- adds the new cards to the end of the stack -- ‚àÜ
  1646. set lockRecent to true
  1647. set lockMessages to true
  1648. open file fileName
  1649. put false into exitLoop
  1650. repeat until exitLoop
  1651. if the mouseClick then
  1652. answer "Stop importing text?" with "No" or "Yes" -- ‚àÜ
  1653. if it is "Yes" then exit repeat -- ‚àÜ
  1654. end if
  1655. set cursor to busy
  1656. doMenu "New Card"
  1657. toggleMark false
  1658. repeat with fieldNum = 1 to (number of items in fieldList - 1)
  1659. read from file fileName until tab
  1660. if it is empty then -- out of text
  1661. deleteCurrentCard -- delete the straggler
  1662. put true into exitLoop
  1663. exit repeat
  1664. end if
  1665. if last char of it is tab then delete last char of it
  1666. do "put it into" && item fieldNum of fieldList
  1667. end repeat
  1668. if exitLoop then exit repeat
  1669. read from file fileName until return
  1670. put SubstituteChar("‚Ķ", return, it) into it
  1671. do "put it into" && item fieldNum + 1 of fieldList
  1672. end repeat
  1673. close file fileName
  1674. set lockRecent to false
  1675. set lockMessages to false
  1676. end ImportTextFile
  1677.  
  1678. on whichStackVersion
  1679. -- Requires handler: importTextFile
  1680. -- Requires function handler: SubstituteChar, SwapItemDelimiter
  1681. -- import text from the HyperCard 1.x Address stack.
  1682. answer file "Import text from which Address stack?" of type "STAK" -- ‚àÜ
  1683. if it is empty or the result is "Cancel" then exit to hyperCard -- ‚àÜ
  1684. put it into exportStack
  1685. put exportStack into fileName
  1686. put SwapItemDelimiter(colon) into oldDelimiter
  1687. delete last item of fileName
  1688. set the itemDelimiter to oldDelimiter
  1689. put fileName  & ":HCAddressExportHC" into fileName
  1690. put the long name of this stack into importStack
  1691. push cd
  1692. set cursor to busy
  1693. set lockMessages to true
  1694. set lockRecent to true
  1695. go stack exportStack
  1696.  
  1697. -- export all the other stacks data to a file then import into this stack -- ‚àÜ
  1698. put number of bg fields into numBgFields
  1699. if numBgFields = 0 then
  1700. answer "There are no background fields from which to export data!" -- ‚àÜ
  1701. exit to hyperCard
  1702. end if
  1703.  
  1704. -- version 1.2.5 or earlier
  1705. if (there is a bg fld "Name and Address") and ¬¨
  1706. (there is a bg fld "Phone Number") and ¬¨
  1707. (there is a bg fld "Date") then
  1708. ImportTextFromOldStack fileName
  1709. else if there is a bg "Body" and hasCorrectFlds() then
  1710. ImportTextFromNewStack fileName  -- version 2.0 or later
  1711. else
  1712. answer "This stack has been modified or was" && ¬¨
  1713. "not shipped with a version of HyperCard." -- ‚àÜ
  1714. exit to HyperCard
  1715. end if
  1716. go to importStack
  1717. unlock screen
  1718. ImportTextFile fileName -- now import the file
  1719. open file fileName
  1720. write empty to file fileName  -- empty out the temp file
  1721. close file fileName
  1722. pop cd
  1723. end whichStackVersion
  1724.  
  1725. function hasCorrectFlds
  1726. put "Name,Company,Street,Zip,Phone 1,Phone 2,Phone 3,Phone 4,Notes" into list
  1727. repeat with i = 1 to 9
  1728. if there is not a bg fld (item i of list) then return "False"
  1729. end repeat
  1730.  
  1731. put "false" into itExists
  1732. if (there is a bg fld "CityState") then put "true" into itExists
  1733. if (there is a bg fld "City") and (there is a bg fld "State")
  1734. then put "true" into itExists
  1735. if itExists is "false" then return "false"
  1736.  
  1737. return "True"
  1738. end hasCorrectFlds
  1739.  
  1740. on ImportTextFromNewStack fileName
  1741. -- collects from version 2.0 or later Addresses Stacks
  1742. open file fileName
  1743.  
  1744. repeat the number of cds of bg "Body"
  1745. set cursor to busy
  1746.  
  1747. put bg fld "Name" into theName -- name
  1748. put bg fld "Company" into theCompany -- company
  1749. put bg fld "Street" into theStreet -- street
  1750.  
  1751. if there is a bg fld "CityState" then -- version 2.0v2
  1752. get bg fld "CityState"
  1753. put item 1 of it into theCity -- city
  1754. put item 2 of it into theState -- state
  1755.  
  1756. if char 1 of theState is space then
  1757. delete char 1 of theState
  1758. end if
  1759.  
  1760. else -- version 2.1
  1761. put bg fld "City" into theCity -- city
  1762. put  bg fld "State" into theState -- state
  1763. end if
  1764.  
  1765. put bg fld "Zip" into theZip -- Zip Code
  1766.  
  1767. put empty into thePhones
  1768. repeat with i = 1 to 4
  1769. put bg fld ("Phone" && i) & tab after thePhones
  1770. end repeat
  1771.  
  1772. put bg fld "Notes" into theNotes -- notes field
  1773. put SubstituteChar(return, "‚Ķ", theNotes) into theNotes -- ‚àÜ
  1774.  
  1775. write theName & tab & theCompany & tab & theStreet & tab & ¬¨
  1776. theCity & tab & theState & tab & theZip & tab & thePhones & ¬¨
  1777. theNotes & return to file fileName
  1778. go next cd of bg "Body"
  1779. end repeat
  1780.  
  1781. close file fileName
  1782. end ImportTextFromNewStack
  1783.  
  1784. on ImportTextFromOldStack fileName
  1785. -- collects from version 1.2.5 or earlier Address Stacks
  1786.  
  1787. open file fileName
  1788.  
  1789. lock screen
  1790. repeat the number of cards
  1791. set cursor to busy
  1792.  
  1793. put bg fld "Name and Address" into anAddress
  1794.  
  1795. put the number of lines in anAddress into numLines
  1796. repeat with lineNdx = 1 to the number of lines in anAddress
  1797. if line lineNdx of anAddress = empty then exit repeat
  1798. end repeat
  1799.  
  1800. put empty into theNotes
  1801. if lineNdx ‚↠numLines then
  1802. if lineNdx > 4 then
  1803. put line lineNdx to 32000 of anAddress & return into theNotes
  1804. delete line lineNdx to 32000 of anAddress
  1805. put word 1 to 2000 of anAddress into anAddress -- strip blank lines
  1806. put the number of lines in anAddress into numLines
  1807. end if
  1808. end if
  1809.  
  1810. put line 1 of anAddress into theName -- Name
  1811.  
  1812. if (numLines - 2) > 1 then -- if there's a third to last line, it's company
  1813. put line (numLines - 2) of anAddress into theCompany
  1814. if (numLines - 2) > 2 then
  1815. put return & line 2 to (numLines - 3) of anAddress & return ¬¨
  1816. after theNotes  -- department?
  1817. end if
  1818. else put empty into theCompany
  1819.  
  1820. if numLines = 2 then put line 2 of anAddress into theStreet
  1821. else if (numLines - 1) > 1 then -- if there's a second to last line, it's street
  1822. put line (numLines - 1) of anAddress into theStreet -- street
  1823. else put empty into theStreet
  1824.  
  1825. put empty into thePhones
  1826. repeat with phoneNdx = 1 to 4
  1827. put line phoneNdx of bg fld "Phone Number" & tab after thePhones
  1828. end repeat
  1829.  
  1830. if bg fld "Date" ‚↠empty then
  1831. put bg fld "Date" after theNotes -- move the date to the notes field
  1832. end if
  1833. put SubstituteChar(return, "‚Ķ", theNotes) into theNotes -- ‚àÜ
  1834.  
  1835. put empty into theCity
  1836. put empty into theState
  1837. put empty into theZip
  1838. if numLines > 2 then
  1839. put line numLines of anAddress into lastLine
  1840. put last word of lastLine into lastWord
  1841. if lastWord ‚↠empty then
  1842. if offset(lastWord, "/-+") = 0 then
  1843. if value(lastWord) is a number then
  1844. put lastWord into theZip
  1845. delete last word of lastLine
  1846. end if
  1847. end if
  1848. end if
  1849.  
  1850. put item 1 of lastLine into theCity
  1851. put word 1 of item 2 of lastLine into theState
  1852. end if
  1853.  
  1854. write theName & tab & theCompany & tab & theStreet & tab & ¬¨
  1855. theCity & tab & theState & tab & theZip & tab & thePhones & ¬¨
  1856. theNotes & return to file fileName
  1857. go next card
  1858. end repeat
  1859.  
  1860. close file fileName
  1861. end ImportTextFromOldStack
  1862.  
  1863. -----  Export Text Operations  -------------------------------------
  1864.  
  1865. on exportText
  1866. -- Requires handler: writeExportedText
  1867. -- Requires function handler: lastHCItem
  1868. -- if shiftKey is down use only the marked cards
  1869. if the shiftKey is down then
  1870. put false into useAllCards
  1871. put "from marked cards" & space into prompt -- ‚àÜ
  1872. put number of marked cards into numCards
  1873. else
  1874. put true into useAllCards
  1875. put empty into prompt
  1876. put number of cards in bg "Body" into numCards
  1877. end if
  1878. ask file "Export text" && prompt & "to the file:" with "Addresses Text File" -- ‚àÜ
  1879. if the result is "Cancel" or it is empty then exit exportText
  1880. put it into fileName
  1881. writeExportedText numCards, useAllCards, fileName
  1882. if numCards = 1 then put "card" into info -- ‚àÜ
  1883. else put "cards" into info -- ‚àÜ
  1884. answer "The text from" && numCards && info && ¬¨
  1885. "was exported to the new file ‚Äú" & lastHCItem(":",fileName) & "‚Äù." -- ‚àÜ
  1886. end exportText
  1887.  
  1888. on writeExportedText numCards, useAllCards, fileName
  1889. -- Requires function handler: theFields
  1890. lock screen
  1891. if useAllCards then go card 1 of bg "Body"
  1892. else go first marked card
  1893. put theFields() into fieldList
  1894. open file fileName
  1895. repeat with currentCard = 1 to numCards
  1896. set cursor to busy
  1897. put empty into theText
  1898. repeat with i = 1 to (number of items in fieldList - 1)
  1899. put value of (item i of fieldList) & tab after theText
  1900. end repeat
  1901. put SubstituteChar(return,"‚Ķ",  value of (item i + 1 of fieldList)) & ¬¨
  1902. tab & return after theText
  1903. write theText to file fileName
  1904. if not useAllCards then go next marked card
  1905. else go next card of this bg
  1906. end repeat
  1907. close file fileName
  1908. unlock screen
  1909. end writeExportedText
  1910.  
  1911. -----  Utility Handlers  --------------------------------------------
  1912.  
  1913. on deleteCurrentCard
  1914. lock screen
  1915. push prev cd
  1916. doMenu "Delete Card"
  1917. pop cd
  1918. unlock screen
  1919. end deleteCurrentCard
  1920.  
  1921. function LastHCItem theDelim,theText
  1922. -- returns the portion of <theText> that follows the last <delim>
  1923. put SwapItemDelimiter(theDelim) into oldDelim
  1924. put last item of theText into theResult
  1925. set the itemDelimiter to oldDelim
  1926. return theResult
  1927. end LastHCItem
  1928.  
  1929. function SubstituteChar origChar, newChar, theText
  1930. -- returns ‚ÄòtheText‚Äô with ‚ÄònewChar‚Äô substituted for all instances of ‚ÄòorigChar‚Äô
  1931. repeat
  1932. put Offset(origChar, theText) into charPos
  1933. if charPos = 0 then return theText
  1934. put newChar into char charPos of theText
  1935. end repeat
  1936. end SubstituteChar
  1937.  
  1938. function SwapItemDelimiter newDelim
  1939. -- change the itemDelimiter, return the old delimiter for later resetting
  1940. put the itemDelimiter into oldDelim
  1941. set the itemDelimiter to newDelim
  1942. return oldDelim
  1943. end SwapItemDelimiter
  1944.  
  1945. on presto
  1946. send "idle" to bg btn id 108
  1947. end presto
  1948.  
  1949. -----  Data Handlers  ----------------------------------------------
  1950.  
  1951. function theFields
  1952. return "bg fld id 4,bg fld id 97," & ¬¨
  1953. "bg fld id 6,bg fld id 98,bg fld id 99," & ¬¨
  1954. "bg fld id 104,bg fld id 8,bg fld id 100," & ¬¨
  1955. "bg fld id 101,bg fld id 102,bg fld id 7"
  1956. end theFields</script>
  1957. </background>
  1958.